package com.simplegovern.dict;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * SysDict entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "sys_dict")
public class Dict implements java.io.Serializable {

	// Fields

	private Long id;
	private String name;
	private String description;

	// Constructors

	/** default constructor */
	public Dict() {
	}

	/** full constructor */
	public Dict(String name, String description) {
		this.name = name;
		this.description = description;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "name")
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "description")
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

}